package com.zzl.finance.data.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzl.finance.data.dto.EnterprisePage;
import com.zzl.finance.data.dto.PlatEnterprisePage;
import com.zzl.finance.data.entity.EnterpriseEntity;
import com.zzl.general.common.requestparameter.KeyAndValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author gull
 * @email 470518461@qq.com
 * @date 2021-11-09 20:04:58
 */
@Mapper
@SuppressWarnings("javadoc")
public interface EnterpriseDao extends BaseMapper<EnterpriseEntity> {

    /**
     * 分页查询企业信息
     * @param page
     * @param params
     * @return
     */
    IPage<EnterprisePage> queryPage(IPage<EnterpriseEntity> page, Map<String, Object> params);

    List<KeyAndValue> getSocialCreditCode(@Param("ids") List<String> ids);

    IPage<PlatEnterprisePage> listPage(IPage<EnterpriseEntity> page, Map<String, Object> params);
}
